package com.ruoyi.zzw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zzw.mapper.PeopleEventMapper;
import com.ruoyi.zzw.domain.PeopleEvent;
import com.ruoyi.zzw.service.TPeopleEventService;

/**
 * 突发事件人员关联表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-06
 */
@Service
public class PeopleEventServiceImpl implements TPeopleEventService
{
    @Autowired
    private PeopleEventMapper peopleEventMapper;

    /**
     * 查询突发事件人员关联表
     * 
     * @param cPeopleDuty 突发事件人员关联表主键
     * @return 突发事件人员关联表
     */
    @Override
    public PeopleEvent selectTPeopleEventByCPeopleDuty(Long cPeopleDuty)
    {
        return peopleEventMapper.selectTPeopleEventByCPeopleDuty(cPeopleDuty);
    }

    /**
     * 查询突发事件人员关联表列表
     * 
     * @param peopleEvent 突发事件人员关联表
     * @return 突发事件人员关联表
     */
    @Override
    public List<PeopleEvent> selectTPeopleEventList(PeopleEvent peopleEvent)
    {
        return peopleEventMapper.selectTPeopleEventList(peopleEvent);
    }

    /**
     * 新增突发事件人员关联表
     * 
     * @param peopleEvent 突发事件人员关联表
     * @return 结果
     */
    @Override
    public int insertTPeopleEvent(PeopleEvent peopleEvent)
    {
        return peopleEventMapper.insertTPeopleEvent(peopleEvent);
    }

    /**
     * 修改突发事件人员关联表
     * 
     * @param peopleEvent 突发事件人员关联表
     * @return 结果
     */
    @Override
    public int updateTPeopleEvent(PeopleEvent peopleEvent)
    {
        return peopleEventMapper.updateTPeopleEvent(peopleEvent);
    }

    /**
     * 批量删除突发事件人员关联表
     * 
     * @param cPeopleDutys 需要删除的突发事件人员关联表主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleEventByCPeopleDutys(Long[] cPeopleDutys)
    {
        return peopleEventMapper.deleteTPeopleEventByCPeopleDutys(cPeopleDutys);
    }

    /**
     * 删除突发事件人员关联表信息
     * 
     * @param cPeopleDuty 突发事件人员关联表主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleEventByCPeopleDuty(Long cPeopleDuty)
    {
        return peopleEventMapper.deleteTPeopleEventByCPeopleDuty(cPeopleDuty);
    }
}
